/**
 * @author zhangshuai
 * @version V1.0
 * @Project Java2_26
 * @Package PACKAGE_NAME
 * @Description:
 * @Date 2025/5/19 16:39
 */

public class SquareImpl implements IShape<Square>{
    @Override
    public Square draw(Square square) {
        return square;
    }

    @Override
    public void print(Square square) {
        if (square!= null){
            System.out.println("打印正方形");
        }
    }
}